import { defHttp } from "@/utils/http";

// ERP 收据分页API
export const receiptsApi = {
	// 获得收据分页分页
	receiptsList: async (params: any) => {
		return await defHttp.get({ url: `/his/receipts/page`, params });
	},
	// 新增收据分页
	receiptsCreate: async (data: any) => {
		return await defHttp.post({ url: `/his/receipts/create`, data });
	},

	// 修改收据分页
	receiptsUpdate: async (data: any) => {
		return await defHttp.put({ url: `/his/receipts/update`, data });
	},

	// 删除收据分页
	receiptsDelete: async (id: number) => {
		return await defHttp.delete({ url: `/his/receipts/delete?id=` + id });
	}
};
